*************************************************************************************************
**** (Multilevel) regressions: Robustness checks of baseline regressions (Appendix C.6) *********
*************************************************************************************************
clear
use "BHPS_merged.dta"

do "ML programs to add model statistics.do"			

* global with individual-level control variables
	global controls "i.education i.male c.age_cent##c.age_cent i.bornelsewhere2 i.parentsbornelsewhere"

	
*************************************************************************************************
******************* Untransformed measure, heavy outliers excluded ******************************
*************************************************************************************************
	
	*** EU support
	global tradevar "real_gr_imp_CH_d_eu"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) & $tradevar<=50 ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations

		
	*** Nationalism
	global tradevar "real_gr_imp_CH_d3"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) & $tradevar<=50 ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations

		
					
*************************************************************************************************
******************* Interacting import shock with year ****************************************** *************************************************************************************************

	*** EU support
	global tradevar "real_gr_imp_CH_d_eu_nl"
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		c.$tradevar##ib2002.year ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations
	
	*** Nationalism
	global tradevar "real_gr_imp_CH_d3_nl"
	
	mixed D3_nationalism L3.nationalism  ///
		c.$tradevar##ib2002.year ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations 						
											
											
							
***************************************************************************************************
************** Exclude movers, i.e. those who changed NUTS 3 location over time *******************
***************************************************************************************************
				
	* generate dummy variables indicating whether current NUTS3 residence is unequal to previous one, for different lags 

	forvalues p = 1/12 {
	bysort pid: gen move_lag`p'=0 if nuts3_2006[_n]==nuts3_2006[_n-`p'] & nuts3_2006[_n]!="" & nuts3_2006[_n-`p']!=""
	bysort pid: replace move_lag`p'=1 if nuts3_2006[_n]!=nuts3_2006[_n-`p'] & nuts3_2006[_n]!="" & nuts3_2006[_n-`p']!=""
	tab move_lag`p'
	}

	* cumulate the information in one variable that measures whether ANY movement took place over the respective window 
	gen mover1=1 if move_lag1==1
	bysort pid: gen mover2=1 if move_lag1==1 | move_lag2==1
	bysort pid: gen mover3=1 if move_lag1==1 | move_lag2==1 | move_lag3==1
	bysort pid: gen mover4=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1
	bysort pid: gen mover5=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1 | move_lag5==1
	
	* How many movers are there?
	bysort waven: fre move_lag1 
	fre move_lag1 move_lag2 move_lag3 move_lag4 move_lag5 if waven>1 & waven<.

	sort pid waven
	
	
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CH_d_eu_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 & move_lag1!=1 & move_lag2!=1 & move_lag3!=1 & move_lag4!=1)  ///
		| (year==2002 & move_lag1!=1 & move_lag2!=1 & move_lag3!=1) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations
				
				
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CH_d3_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2002 | year==2005 | year==2008) ///
		& (move_lag1!=1 & move_lag2!=1 & move_lag3!=1) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations
						
						

***************************************************************************************************
************** Exluding those employed in agriculture, fishing, mining and manufacturing **********
***************************************************************************************************
	* This version excludes all those with known information on sectoral employment equaling agriculture, fishing, mining and manufacturing 
	* It thus includes all with missing information
	* These will largely be people who do not work, but there may be some indviduals who do work but for whom the information is missing for some other reasons, and some of these may actually work in the primary and secondary sector
	
	
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CH_d_eu_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) & jbsic92_section>4 ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations

	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CH_d3_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) & jbsic92_section>4 ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations


***************************************************************************************************
******** Including only those employed in agriculture, fishing, mining and manufacturing **********
***************************************************************************************************
	* This version includes only all those with known information on sectoral employment that does not equal agriculture, fishing, mining and manufacturing 
	* It thus excludes all with missing information, and therefore all those who do not work (which, of course, reduces power heavily)		
	
	
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CH_d_eu_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) & jbsic92_section>4 & jbsic92_section<. ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations
	
	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CH_d3_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) & jbsic92_section>4 & jbsic92_section<. ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations reml
					
					
***************************************************************************************************
************** Import shock with constant base year for employment shares = 1998 ******************
***************************************************************************************************
							
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CH_d_eu_b98_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations

	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CH_d3_base98_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations		
																
					

***********************************************************************************************************************
*** Import shock with constant base year for employment shares = 1998, without control for manufacturing share ********
***********************************************************************************************************************
							
							
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CH_d_eu_b98_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations

	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CH_d3_base98_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations
													
	
	
***********************************************************************************************************************
*************** Import shock relative to 1998, with manufacturing share ***********************************************
***********************************************************************************************************************
							
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CH_d_base98_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations
		
	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CH_d_base98_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations reml


					
***********************************************************************************************************************
**************** Import shock relative to 1998, without manufacturing share *******************************************
***********************************************************************************************************************							
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CH_d_base98_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations

	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CH_d_base98_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations

				
					
***********************************************************************************************************************
********************** Import shock relative to 1995, without manufacturing share *************************************
***********************************************************************************************************************
														
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CH_d_base95_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations					

	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CH_d_base95_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations reml


		
***********************************************************************************************************************
*********************  Import shock for China AND other EMEs (CZE, POL, TUR, IND, MYS) ********************************
***********************************************************************************************************************
	* take neglog of tradevar
		forvalues p = 3/4 {
		gen real_gr_imp_CHandEME_d`p'_nl = sign(real_gr_imp_CHandEME_d`p') * ln(abs(real_gr_imp_CHandEME_d`p')+1)
						}

		forvalues p = 3/4 {
		gen real_ADH_imp_CHandEME_d`p'_nl = sign(real_ADH_imp_CHandEME_d`p') * ln(abs(real_ADH_imp_CHandEME_d`p')+1)
						}

	
	* Create appropriately timed variables for EU support analysis
		gen real_ADH_imp_CHandEME_d_eu_nl=real_ADH_imp_CHandEME_d3_nl if year==2002	
		replace real_ADH_imp_CHandEME_d_eu_nl=real_ADH_imp_CHandEME_d4_nl if year==2006	
		
		gen real_gr_imp_CHandEME_d_eu_nl=real_gr_imp_CHandEME_d3_nl if year==2002	
		replace real_gr_imp_CHandEME_d_eu_nl=real_gr_imp_CHandEME_d4_nl if year==2006		
						
						
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CHandEME_d_eu_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations						

	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CHandEME_d3_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations
				
	
			
***********************************************************************************************************************
******************* Additional control: imports from rest of the world ************************************************
***********************************************************************************************************************
	* take neglog of tradevar
		forvalues p = 3/4 {
		gen real_gr_imp_ROW_d`p'_nl = sign(real_gr_imp_ROW_d`p') * ln(abs(real_gr_imp_ROW_d`p')+1)
							}

		forvalues p = 3/4 {
		gen real_ADH_imp_ROW_d`p'_nl = sign(real_ADH_imp_ROW_d`p') * ln(abs(real_ADH_imp_ROW_d`p')+1)
							}			
	
	* Create appropriately timed variables for EU support analysis
		gen real_ADH_imp_ROW_d_eu_nl=real_ADH_imp_ROW_d3_nl if year==2002	
		replace real_ADH_imp_ROW_d_eu_nl=real_ADH_imp_ROW_d4_nl if year==2006	
		
		gen real_gr_imp_ROW_d_eu_nl=real_gr_imp_ROW_d3_nl if year==2002	
		replace real_gr_imp_ROW_d_eu_nl=real_gr_imp_ROW_d4_nl if year==2006		

		
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_CH_d_eu_nl real_gr_imp_ROW_d_eu_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations						

	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_CH_d3_nl real_gr_imp_ROW_d3_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations reml				
		
		
					
***********************************************************************************************************************
*********************** IV reduced form: Chinese imports in other advanced economies **********************************
***********************************************************************************************************************
	* take neglog of tradevar
		forvalues p = 3/4 {
		gen real_gr_imp_ADV_CH_d`p'_nl = sign(real_gr_imp_ADV_CH_d`p') * ln(abs(real_gr_imp_ADV_CH_d`p')+1)
						}

		forvalues p = 3/4 {
		gen real_ADH_imp_ADV_CH_d`p'_nl = sign(real_ADH_imp_ADV_CH_d`p') * ln(abs(real_ADH_imp_ADV_CH_d`p')+1)
						}
							
	* Create appropriately timed variables for EU support analysis
		gen real_ADH_imp_ADV_CH_d_eu_nl=real_ADH_imp_ADV_CH_d3_nl if year==2002
		replace real_ADH_imp_ADV_CH_d_eu_nl=real_ADH_imp_ADV_CH_d4_nl if year==2006
			
		gen real_gr_imp_ADV_CH_d_eu_nl=real_gr_imp_ADV_CH_d3_nl if year==2002
		replace real_gr_imp_ADV_CH_d_eu_nl=real_gr_imp_ADV_CH_d4_nl if year==2006	

	
	*************** Regression: EU membership support
	global tradevar "real_gr_imp_ADV_CH_d_eu_nl"		
	
	mixed D_EUsupport c.LDV_EUsupport##i.year ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2006 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations						

	
	*************** Regression: Nationalist attitudes
	global tradevar "real_gr_imp_ADV_CH_d3_nl"		

	mixed D3_nationalism L3.nationalism ///
		$tradevar ///
		emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
		$controls i.ID_NUTS1xYear  ///
		if (year==2008 | year==2005 | year==2002) ///
		|| ID_NUTS3: || ID_NUTS3xYear: || ID_lad13xyear: , stddeviations reml

					
					
***********************************************************************************************************************
*********************************** IV via ivreg2: ********************************************************************
**** Use measure based on Chinese imports in other advanced economies to predict measure based on UK imports **********
***********************************************************************************************************************
						
				
	*************** Regression: EU membership support
		ivreg2 D_EUsupport (real_gr_imp_CH_d_eu_nl = real_gr_imp_ADV_CH_d_eu_nl) ///
			c.LDV_EUsupport##i.year ///
			emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_eu ///
			$controls ///
			i.ID_NUTS1xYear ///
			if (year==2006 | year==2002), /// 
			cluster(ID_NUTS3xYear)
	
	*************** Regression: Nationalist attitudes
		ivreg2 D3_nationalism (real_gr_imp_CH_d3_nl = real_gr_imp_ADV_CH_d3_nl) ///
			L3.nationalism ///
			emplsh_manufact_1998 pop_sharenonUK pop_sharenonUK_d_nat ///
			$controls ///
			i.ID_NUTS1xYear ///
			if (year==2002 | year==2005 | year==2008), /// 
			cluster(ID_NUTS3xYear) 


			
***********************************************************************************************************************
************************* Fixed effects panel model *******************************************************************
***********************************************************************************************************************

	* generate dummy variables indicating whether current NUTS3 residence is unequal to previous one, for different lags 
	drop move_lag*
	drop mover*

	sort pid waven 

	forvalues p = 1/10 {
	bysort pid: gen move_lag`p'=0 if nuts3_2006[_n]==nuts3_2006[_n-`p'] & nuts3_2006[_n]!="" & nuts3_2006[_n-`p']!=""
	bysort pid: replace move_lag`p'=1 if nuts3_2006[_n]!=nuts3_2006[_n-`p'] & nuts3_2006[_n]!="" & nuts3_2006[_n-`p']!=""
	}

	* cumulate the information in one variable that measures whether ANY movement took place over the respective window 
	gen mover1=1 if move_lag1==1
	bysort pid: gen mover2=1 if move_lag1==1 | move_lag2==1
	bysort pid: gen mover3=1 if move_lag1==1 | move_lag2==1 | move_lag3==1
	bysort pid: gen mover4=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1
	bysort pid: gen mover5=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1 | move_lag5==1
	bysort pid: gen mover6=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1 | move_lag5==1 | move_lag6==1
	bysort pid: gen mover7=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1 | move_lag5==1 | move_lag6==1
	bysort pid: gen mover8=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1 | move_lag5==1 | move_lag6==1 | move_lag7==1
	bysort pid: gen mover9=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1 | move_lag5==1 | move_lag6==1 | move_lag7==1 | move_lag8==1
	bysort pid: gen mover10=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1 | move_lag5==1 | move_lag6==1 | move_lag7==1 | move_lag8==1 | move_lag9==1
	bysort pid: gen mover11=1 if move_lag1==1 | move_lag2==1 | move_lag3==1 | move_lag4==1 | move_lag5==1 | move_lag6==1 | move_lag7==1 | move_lag8==1 | move_lag9==1 | move_lag10==1
									
	
	
* SEs clustered on individual level
	*************** Regression: EU membership support									
	xtreg EUsupport real_gr_imp_CH_d_eu_nl ///
					emplsh_manufact_1998 ///
					$controls i.ID_NUTS1xYear ///
					if (year==2006 | year==2002 | year==1999), fe robust cluster(pid)			

	*************** Regression: Nationalist attitudes
	xtreg nationalism real_gr_imp_CH_d3_nl ///
						emplsh_manufact_1998  ///
					$controls i.ID_NUTS1xYear ///
					if (year==2008 | year==2005 | year==2002 | year==1999) ///
					, fe robust cluster(pid)	

					
					
* SEs clustered on NUTS3 3-regions, mover excluded	
	*************** Regression: EU membership support									
	xtreg EUsupport real_gr_imp_CH_d_eu_nl ///
					$controls i.ID_NUTS1xYear ///
					if (year==2006 & mover8!=1) ///
					| (year==2002 & mover3!=1) ///
					| (year==1999) ///
					, fe robust cluster(nuts3_2006)			
					
	
	*************** Regression: Nationalist attitudes
	xtreg nationalism real_gr_imp_CH_d3_nl ///
					$controls i.ID_NUTS1xYear ///
					if (year==2008 & mover10!=1) ///
					| (year==2005 & mover6!=1) ///
					| (year==2002 & mover3!=1) ///
					| (year==1999) ///
					, fe robust cluster(nuts3_2006)